#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* button1 = new QPushButton();
    QPushButton* button2 = new QPushButton();
    QPushButton* button3 = new QPushButton();
    button1->setText("button1");
    button2->setText("button2");
    button3->setText("button3");
    QVBoxLayout* layout = new QVBoxLayout();
    layout->addWidget(button1);
    layout->addWidget(button2);
    layout->addWidget(button3);

    this->setLayout(layout);

}

Widget::~Widget()
{
    delete ui;
}

